package com.mayn.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.mayn.jst.task.AllShopLoginTask;

/**
 * 对所有店铺帐号执行登陆操作,获取cookie
 * 
 * @author Administrator
 *
 */
@DisallowConcurrentExecution
public class AllShopLoginJob implements Job {

	private static final Logger LOG = LoggerFactory.getLogger(AllShopLoginJob.class);

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		long starTime = System.currentTimeMillis();
		LOG.info("JobStart--开始执行");

		AllShopLoginTask.CheckAndLoginAll();

		long endTime = System.currentTimeMillis();
		long Time = endTime - starTime;
		LOG.info("JobEnd--执行结束,耗时" + Time / 1000 + "秒");
	}

}
